<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<script src="<s:url value="/script/jquery_last.js"/>" type="text/javascript"></script>
<script src="<s:url value="/script/formValidator.js"/>" type="text/javascript" charset="UTF-8"></script>
<script src="<s:url value="/script/formValidatorRegex.js"/>" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="<s:url value="/script/ShowProcessBar.js"/>" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,alertmessage:true,onerror:function(msg){alert(msg)}});
	$("input:text[name='linkMethod.value']").formValidator().inputValidator({min:1,max:100,onerror:"联系方式不能为空,请填写联系方式。",empty:{leftempty:false,rightempty:false,emptyerror:"联系方式左右不能有空值"}});
});
</script>

<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<link rel="stylesheet" href="<s:url value="/css/validator.css"/>">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="998" border="0" cellspacing="0" cellpadding="0"
	align="center">
	<tr>
		<td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			background="<s:url value="/images/new/gxzl_index_2.gif"/>">
			<tr>
				<td width="20" height="32">&nbsp;</td>
				<td width="20"><img
					src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
					height="12" /></td>
				<td><font color="#FFFFFF">当前位置：系统管理&gt;&gt;组织管理&gt;&gt;联系方式</font></td>
				<td></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			align="center" bgcolor="#FFFFFF">
			<tr>
				<td width="240" valign="top" class="leftbg">
		 		<%@ include file="/commons/include/org_left.inc"%>  
				</td>
				<td valign="top">
				<s:form action="/organ/saveLinkMethod.action"  namespace="/organ" 
				 onsubmit="return $.formValidator.pageIsValid('1'));" method="post" >
					<input type="hidden" name="linkMethod.id" value="${linkMethod.id}">
					<table width="660" border="0" cellspacing="0" cellpadding="0"
						background="<s:url value="/images/catalog_manage_8b.gif"/>">
						<tr>
							<td><img src="<s:url value="/images/catalog_manage_8.gif"/>" width=660
								height=11 alt=""></td>
						</tr>
						<tr>
							<td>
							<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
								<TR height=30>
									<TD align=left width="10%">
										<input type="submit"
										name="Submit" value="保 存" IsShowProcessBar="True" > 
										<input type="button" value="返 回"
										onClick="location.href='listLinkMethod.action'">
									</TD>
								</TR>
							</table>
							<s:if test="#returnMsg==null">
							</s:if>
							<s:else>
							<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
								<TR height=30>
									<TD align=left width="10%">
										<font color="red">${returnMsg}</font>
									</TD>
								</TR>
							</table>
							</s:else>
							<table width="98%" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right"><font color="red">*</font>人&nbsp;&nbsp;&nbsp;&nbsp;员：</div>
									</td>
									<td width="81%">
									  	<input type="hidden" name="linkMethod.person.id" value="${linkMethod.person.id}">
				                      	<input type="text" name="linkMethod.person.name" id="person_name" 
											value="${linkMethod.person.name}" readonly>
									  	<input type="button" name="selType" value="选择人员" onClick="selectPerson()"/>
									  	<div id="persontip" style="width:20px"></div>
									</td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right"><font color="red">*</font>联系类型：</div>
									</td>
									<td width="81%">
										<select name="linkMethod.type">
											<option value="办公电话">办公电话</option>
											<option value="小灵通">小灵通</option>
											<option value="手机">手机</option>
											<option value="电子邮箱">电子邮箱</option>
										</select>
									</td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right"><font color="red">*</font>联系方式：</div>
									</td>
									<td width="81%">
										<s:textfield name="linkMethod.value" theme="css_xhtml"/>
										<div id="valuetip" style="width:20px"></div>
									</td>
								</tr>
								<input type="hidden" name="linkMethod.creator" value="${linkMethod.creator}">
								<input type="hidden" name="linkMethod.begin" value="<s:date name="linkMethod.begin" format="yyyy-MM-dd HH:mm:ss"/>">
								<input type="hidden" name="linkMethod.end" value="<s:date name="linkMethod.end" format="yyyy-MM-dd HH:mm:ss"/>">
							</table>
							</td>
						</tr>
						<tr>
							<td>
								<img src="<s:url value="/images/catalog_manage_8a.gif"/>" width="660"
								height="9">
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</s:form> 
</body>
</html>
<script>
<!--
function selectPerson(){
     var url="/poc/organ/toOrganTree.action?type=&path=toPersonTree&module=radio&date=<%=System.currentTimeMillis()%>";
	 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:800px;dialogHeight:600px;scroll:yes;");
	 if(returnData){
	 	document.forms[0]["linkMethod.person.name"].value=returnData[1];
	 	document.forms[0]["linkMethod.person.id"].value=returnData[0];
	 }
}
-->
</script>
